import Layout from "@/layout/index.vue";
import * as i18n from "@/utils";
let goods = {
  path: "/goods",
  component: Layout,
  name: "商品管理",
  meta: {
    title: i18n.t("router.goodsManage"),
    icon: "dashboard",
    isPermiss: "/management/goods"
  },
  children: [
    {
      path: "/goods/info",
      name: "商品列表",
      component: () => import("@/views/goods/info/index.vue"),
      meta: { title: i18n.t("help.help.goodsLists") },
      isPermiss: "/management/goods.goods/getList?status=1"
    },
    {
      hidden: true,
      path: "/goods/info/add_info",
      component: () => import("@/views/goods/info/add_info/index.vue"),
      name: "添加商品",
      meta: { title: i18n.t("goods.list.add"), induce: "/goods/info" },
      isPermiss: "/management/goods.goods/add"
    },
    {
      hidden: true,
      path: "/goods/info/details_info",
      component: () => import("@/views/goods/info/details_info/index.vue"),
      name: "商品详情",
      meta: { title: i18n.t("goods.list.details"), induce: "/goods/info" },
      isPermiss: "/management/goods.goods/update"
    },
    {
      path: "/goods/type",
      name: "商品分类",
      component: () => import("@/views/goods/type/index.vue"),
      meta: { title: i18n.t("machine.goods.class") },
      isPermiss: "/management/goods.goods_category/getList"
    },
    {
      path: "/goods/corner",
      name: "商品角标",
      component: () => import("@/views/goods/corner/index.vue"),
      meta: { title: i18n.t("machine.goods.cornerLabel") },
      isPermiss: "/management/goods.goods_corner/getList"
    },
    {
      hidden: true,
      path: "/goods/corner/add_info",
      component: () => import("@/views/goods/corner/add_info/index.vue"),
      name: "添加角标",
      meta: { title: i18n.t("goods.corner.add"), induce: "/goods/corner" },
      isPermiss: "/management/goods.goods_corner/add"
    },
    {
      hidden: true,
      path: "/goods/corner/details_info",
      component: () => import("@/views/goods/corner/details_info/index.vue"),
      name: "角标详情",
      meta: { title: i18n.t("goods.corner.details"), induce: "/goods/corner" },
      isPermiss: "/management/goods.goods_corner/update"
    },
    {
      path: "/goods/groupM",
      name: "组合商品",
      component: () => import("@/views/goods/groupM/index.vue"),
      meta: { title: i18n.t("router.combination") },
      isPermiss: "/management/goods.goods_multiple/getList"
    },
    {
      hidden: true,
      path: "/goods/groupM/add",
      name: "组合商品详情",
      component: () => import("@/views/goods/groupM/add/index.vue"),
      meta: { title: i18n.t("router.combDetails") },
      isPermiss: "/management/goods.goods_multiple/getFind"
    },
    {
      path: "/goods/ctrips",
      name: "携程套餐",
      component: () => import("@/views/goods/ctrips/index.vue"),
      meta: { title: i18n.t("router.Ctrippackage") },
      isPermiss: "/management/trip.trip_multiple/getList"
    },
    {
      hidden: true,
      path: "/goods/ctrips/details",
      name: "携程套餐详情",
      component: () => import("@/views/goods/ctrips/details/index.vue"),
      meta: { title: i18n.t("router.packageDetails") },
      isPermiss: "/management/trip.trip_multiple/getFind"
    }
  ]
};

export default goods;
